<html><head>
<link rel="stylesheet" href="docstyle.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Jvm_bytecode" rel="Chapter" href="Jvm_bytecode.html">
<link title="Jvm_io" rel="Chapter" href="Jvm_io.html">
<link title="Jvm_jar" rel="Chapter" href="Jvm_jar.html">
<link title="Jvm_type" rel="Chapter" href="Jvm_type.html"><title>HaXeJvm Documentation : Jvm_io.flag_to_int</title>
</head>
<body>
<code class="code"><span class="keyword">let</span>&nbsp;<span class="keyword">rec</span>&nbsp;merge_flags&nbsp;flags_list&nbsp;=<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">let</span>&nbsp;merge_access_masks&nbsp;flag1&nbsp;flag2&nbsp;=&nbsp;flag1&nbsp;<span class="keyword">land</span>&nbsp;flag2<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">in</span>&nbsp;<span class="constructor">U2</span>&nbsp;(<span class="constructor">List</span>.fold_left&nbsp;merge_access_masks&nbsp;0x0000&nbsp;(<span class="constructor">List</span>.map&nbsp;flag_to_int&nbsp;flags_list))<br>
<br>
<span class="keyword">and</span>&nbsp;flag_to_int&nbsp;=&nbsp;<span class="keyword">function</span><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Public</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x0001<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Private</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x0002<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Protected</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x0004<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Static</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x0008<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Final</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x0010<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Super</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x0020<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Synchronized</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x0020<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Volatile</span>&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Bridge</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x0040<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Transient</span>&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Varargs</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x0080<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Native</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x0100<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Interface</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x0200<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Abstract</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x0400<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Strict</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x0800<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Synthetic</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x1000<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Annotation</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x2000<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Enum</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;0x4000</code></body></html>